add a simple github action workflow to build test the documentation
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 2 Jan 2025 11:46:39 +0000 (12:46 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 2 Jan 2025 14:28:18 +0000 (15:28 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
.drone.yml
.github/workflows/documentation.yml [new file with mode: 0644]

index 8e8b3c55a5e0a28f870a2630fe2f263596e1cf6d..d538bdc02845e25aad1aef1cd727396674195370 100644 (file)
@@ -189,23 +189,7 @@ trigger:
     - pull_request
     - push
 ---
-kind: pipeline
-name: Documentation
-
-steps:
-- name: build
-  image: nextcloudci/documentation:documentation-5
-  commands:
-    - cd doc
-    - make html
-trigger:
-  branch:
-    - master
-  event:
-    - pull_request
-    - push
----
 kind: signature
-hmac: 1fbd0241ba0d4ea2702804324f4932b3f29d3d937ef75906a529cd00c4252a57
+hmac: 94f252484ad174569755f01f37a1776a74085e73b39e36defd4c9e5e13b48456
 
 ...
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
new file mode 100644 (file)
index 0000000..95b7191
--- /dev/null
@@ -0,0 +1,22 @@
+name: Generate Documentation
+on:
+  pull_request:
+    types: [opened, synchronize, reopened]
+jobs:
+  build:
+    name: Generate Documentation
+    runs-on: ubuntu-latest
+    container: ghcr.io/nextcloud/continuous-integration-client-qt6-doc:client-doc-6.8.0-1
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          fetch-depth: 1
+      - name: Generate documentation
+        run: |
+          cd doc
+          make html > build.log 2>&1
+          if grep WARNING build.log; then
+              exit 1
+          else
+              exit 0
+          fi